#if !defined(AFX_INPLACEDATEPICK_H__8D4FB8AC_47B0_40D4_B8CB_1F58E6EE9149__INCLUDED_)
#define AFX_INPLACEDATEPICK_H__8D4FB8AC_47B0_40D4_B8CB_1F58E6EE9149__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// InPlaceDatePick.h : header file
//


/////////////////////////////////////////////////////////////////////////////
// CInPlaceDatePick window

class CInPlaceDatePick : public CDateTimeCtrl
{
// Construction
public:
	CInPlaceDatePick(DWORD dwStyle,
					 CRect& rect,
					 CWnd* pParentWnd,
					 UINT nID,
					 int nRow,
					 int nColumn,
					 COLORREF bkColor,
					 CString sCurrentDate);

// Attributes
public:
	
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CInPlaceDatePick)
	protected:
	virtual void PostNcDestroy();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CInPlaceDatePick();

	void EndEdit();
protected:
	//{{AFX_MSG(CInPlaceDatePick)
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

private:
	int m_nRow;
	int m_nCol;
	UINT	m_nLastChar;
	CString m_sDate;
	COLORREF m_clrBk;
	CString m_sCurrentDate;

	CWnd* m_pGrid;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_INPLACEDATEPICK_H__8D4FB8AC_47B0_40D4_B8CB_1F58E6EE9149__INCLUDED_)
